<script src="<?=base_url()?>assets/library/jQuery-1.3.8/jquery-1.8.3.min.js"></script>
<script src="<?=base_url()?>assets/library/angular/angular.min.js"></script>
<script src="<?=base_url()?>assets/library/angular/angular-sanitize.min.js"></script>
<script type="text/javascript" src="<?=base_url()?>assets/library/aui/script/api.js"></script>
<script src="<?=base_url()?>assets/library/aui/script/aui-dialog.js"></script>
<script src="<?=base_url()?>assets/library/aui/script/aui-toast.js"></script>
<script src="<?=base_url()?>assets/wx/js/base.js?123123"></script>
<script src="<?=base_url()?>assets/wx/js/car.js"></script>

<?php
    if (!empty($js) && is_array($js)) foreach($js as $item){
        if(preg_match('/^http/i', $item)) {
            echo '<script src="' . $item . '"></script>';
        } else {
            echo '<script src="'. base_url() . ltrim($item, '/') . '"></script>';
        }
    }
?>
</body>
</html>

